package com.jams.goodox.adapter;

import android.content.Context;

import com.lvman.configs.instrumentation.InstrumentedDraweeView;
import com.jams.goodox.R;
import com.jams.goodox.entity.RepairBean;
import com.jams.library.commonAdapter.ListCommonAdapter;
import com.jams.library.commonAdapter.ListCommonViewHolder;
import com.jams.library.fresco.FrescoUtil;

import java.util.List;

/**
 * 维修列表适配器
 * Created by guozhen.hou on 2017/7/10.
 */

public class RepairAdapter extends ListCommonAdapter<RepairBean>{
    public RepairAdapter(Context context, List<RepairBean> mDatas) {
        super(context, mDatas, R.layout.repair_item);
    }

    @Override
    public void convert(ListCommonViewHolder helper, RepairBean item, int position) {
        InstrumentedDraweeView img_icon=helper.getView(R.id.img_icon);
        FrescoUtil.loadImg(img_icon,item.getImgPath());
        helper.setText(R.id.tx_title,item.getServiceName());
    }
}
